package com.icode.gulimall.search.feign;

import com.icode.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2020-12-23 19:52
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @GetMapping("/product/attr/info/{attrId}")
    R attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("/product/brand/allInfo")
    R brandInfo(@RequestParam("brandIds") List<Long> brandIds);
}
